<template>
  <div class="app">
    <div class="header">
      <Header />
    </div>
    <div class="main">
      <router-view />
    </div>
    <div class="footer">
      <Footer></Footer>
    </div>
  </div>
</template>

<script>
import Footer from '@/components/Footer'
import Header from '@/components/Header'
export default {
  components: {
    Footer,
    Header
  }
}
</script>

<style  scoped>
/* 重置样式 */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
figure,
fieldset,
textarea,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  margin: 0;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img,
video {
  height: auto;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

td:not([align]),
th:not([align]) {
  text-align: left;
}
a {
  text-decoration: none;
  outline: none;
}
html,
body,
.app{
  height: 100%;
}
.app {
  display: flex;
  flex-direction: column;
}
.header {
  height: 220px;
  background-color: #fff;
}
.main {
  flex: 1;
  min-height: 1000px;
}
.footer {
  height: 309px;
}
</style>
